export const mainMaterialsInfosColumns = [
  {
    title: '材料类别',
    dataIndex: 'materialCategory',
    key: 'materialCategory'
  },
  {
    title: '材料名称',
    dataIndex: 'materialTypeName',
    key: 'materialTypeName'
  },
  {
    title: '供应商名称',
    dataIndex: 'supplierName',
    key: 'supplierName'
  },
  {
    title: '成分',
    dataIndex: 'component',
    key: 'component'
  },
  {
    title: '织法',
    dataIndex: 'weave',
    key: 'weave'
  },
  {
    title: '颜色',
    dataIndex: 'color',
    key: 'color'
  },
  {
    title: '规格',
    dataIndex: 'specification',
    key: 'specification'
  },
  {
    title: '门幅（mm）',
    dataIndex: 'doorWidth',
    key: 'doorWidth'
  },
  {
    title: '计量单位',
    dataIndex: 'unit',
    key: 'unit'
  },

  {
    title: '具体位置',
    dataIndex: 'position',
    key: 'position'
  },
  {
    title: '备注',
    dataIndex: 'remark',
    key: 'remark'
  }
]

export const garmentAccessoriesInfosColumns = [
  {
    title: '材料类别',
    dataIndex: 'materialCategory',
    key: 'materialCategory'
  },
  {
    title: '材料名称',
    dataIndex: 'materialTypeName',
    key: 'materialTypeName'
  },
  {
    title: '供应商名称',
    dataIndex: 'supplierName',
    key: 'supplierName'
  },
  {
    title: '成分',
    dataIndex: 'component',
    key: 'component'
  },
  {
    title: '颜色',
    dataIndex: 'color',
    key: 'color'
  },
  {
    title: '规格',
    dataIndex: 'specification',
    key: 'specification'
  },
  {
    title: '计量单位',
    dataIndex: 'unit',
    key: 'unit'
  },
  {
    title: '具体位置',
    dataIndex: 'position',
    key: 'position'
  },
  {
    title: '备注',
    dataIndex: 'remark',
    key: 'remark'
  }
]

export const packagingAccessoriesInfosColumns = [
  {
    title: '材料类别',
    dataIndex: 'materialCategory',
    key: 'materialCategory'
  },
  {
    title: '材料名称',
    dataIndex: 'materialTypeName',
    key: 'materialTypeName'
  },
  {
    title: '供应商名称',
    dataIndex: 'supplierName',
    key: 'supplierName'
  },
  {
    title: '成分',
    dataIndex: 'component',
    key: 'component'
  },
  {
    title: '规格',
    dataIndex: 'specification',
    key: 'specification'
  },
  {
    title: '计量单位',
    dataIndex: 'unit',
    key: 'unit'
  },
  {
    title: '具体位置',
    dataIndex: 'position',
    key: 'position'
  },
  {
    title: '备注',
    dataIndex: 'remark',
    key: 'remark'
  }
]

// TODO 字端详细对接
export const specialProcessInfosColumns = [
  {
    title: '费用名称',
    dataIndex: 'materialTypeName',
    key: 'materialTypeName',
    width: '50%'
  }
]

export const wagesInfosColumns = [
  {
    title: '费用名称',
    dataIndex: 'materialTypeName',
    key: 'materialTypeName'
  },
  {
    title: '费用类型',
    dataIndex: 'currencyType',
    key: 'currencyType',
    scopedSlots: { customRender: 'currencyType' }
  }
]

export const sumPriceColumns = [
  {
    title: '总价（元）',
    key: 'price',
    scopedSlots: { customRender: 'price' }
  }
]

export const editInputColumns = [
  {
    title: '单价（元）',
    key: 'unitPrice',
    width: 150,
    scopedSlots: { customRender: 'unitPrice' }
  },
  {
    title: '用量',
    key: 'unitUseNum',
    width: 150,
    scopedSlots: { customRender: 'unitUseNum' }
  },
  {
    title: '损耗（%）',
    key: 'lossRate',
    width: 150,
    scopedSlots: { customRender: 'lossRate' }
  },
  {
    title: '价格（元）',
    key: 'price',
    width: 120,
    scopedSlots: { customRender: 'price' }
  }
]

export const materialBidRecordOtherColumns = [
  {
    title: '费用名称',
    key: 'materialName',
    width: 200,
    scopedSlots: { customRender: 'materialName' }
  },
  {
    title: '费用描述',
    key: 'materialDesc',
    width: 200,
    scopedSlots: { customRender: 'materialDesc' }
  },
  {
    title: '总价',
    key: 'sumPrice',
    width: 120,
    scopedSlots: { customRender: 'sumPrice' }
  },
  {
    title: '操作',
    key: 'action',
    width: 120,
    scopedSlots: { customRender: 'action' }
  }
]

export const allPriceColumns = [
  {
    title: '缝制副件-主料 (元）',
    dataIndex: 'mainMaterialAllPrice',
    key: 'mainMaterialAllPrice',
    width: '160px'
  },
  {
    title: '缝制副件-成衣辅料（元）',
    dataIndex: 'garmentAccessoriesAllPrice',
    key: 'garmentAccessoriesAllPrice',
    width: '230px'
  },
  {
    title: '缝制副件-包装辅料（元）',
    dataIndex: 'packagingAccessoriesAllPrice',
    key: 'packagingAccessoriesAllPrice',
    width: '230px'
  },
  {
    title: '缝制副件-特殊工艺（元）',
    dataIndex: 'specialProcessAllPrice',
    key: 'specialProcessAllPrice',
    width: '230px'
  },
  {
    title: '管理费用（元）',
    dataIndex: 'wagesAllPrice',
    key: 'wagesAllPrice',
    width: '160px'
  },
  {
    title: '其他费用（元）',
    width: '160px',
    dataIndex: 'otherAllPrice',
    key: 'otherAllPrice'
  },
  {
    title: '总计（元）',
    width: '160px',
    key: 'totalPrice',
    fixed: 'right',
    scopedSlots: { customRender: 'totalPrice' }
  }
]
